/*
 * globe_var.h
 *
 */
#ifndef __GLOBE_VAR_H_
#define __GLOBE_VAR_H_

#ifdef  __cplusplus
extern "C" {
#endif		/* __cplusplus */
	
#include "imu_process.h"

//GSensor 335
extern unsigned short gADXL335_Normal_X;
extern unsigned short gADXL335_Normal_Y;
extern unsigned short gADXL335_Normal_Z;
extern unsigned short gADXL335_45_X;
extern unsigned short gADXL335_45_Y;

//GSensor 345
extern double gADXL345_mg[3];
extern double gADXL345_45_mg[3];

//HMC5883
extern double HMC5883_M[3];
extern short sGet_Magnetometer_Timeout;
extern double sMx_Bias;
extern double sMy_Bias;
extern double sMagnetometer_Bias_factor;
extern double Heading_by_Magnetometer;

//L3G4200D
extern double L3G4200D_Value[3];
extern double gGyro_bias_aveg;
extern double gBias_aveg[3];

//LSM303DLH
extern double lsm303_A[3];
extern double lsm303_M[3];

//Pressure MS5xxx
extern double MS_pressure;
extern double MS_temperature;
extern double MS_altitude;
extern double Calculate_P0;
extern double movavg_altitude;

//Murata
extern unsigned short gMurata_Y, gMurata_Z;

//DR
extern double gLongitude_imu;
extern double gLatitude_imu;
extern double gGpsHeading;
extern double gMagHeading;
extern unsigned char Car_State_Azimuth;
extern double gRoll;
extern double gPitch;
extern double gLast_Gx;
extern double gLast_Gy;
extern double gInn;
extern char gAx_go_or_back;
extern unsigned char gGpsState;
extern long gMillage;
extern double gRG_Angle;

#ifdef __cplusplus
}
#endif	/* __cplusplus */
#endif	/* __GLOBE_VAR_H_ */